import 'package:data_plugin/bmob/bmob.dart';
import 'package:data_plugin/bmob/bmob_query.dart';
import 'zhiyao.dart';

void main()async{
  Bmob.init("https://api2.bmob.cn", "d6120f0280df61012ca8e02b96e3d3b1", "27fd92eaacf8881933b09af7a4d8dc30");
  await queryAll();
  await Future.delayed(Duration(seconds: 110));
}

queryAll(){
  BmobQuery<TitleModel> query = BmobQuery();
  query.setLimit(1000) ;
  query.setSkip(1500);//0 500 1000 1500
  query.queryObjects().then((data) {
    print('================'+data[0].toString());
  }).catchError((e) {
    print('===========>error');
  });
}